home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / editor / ce361.zip / MANUAL < prev    next >
Text File  |  1996-11-11  |  19KB  |  403 lines

  1.  
  2.  
  3.                      *******************************
  4.                      *                             *
  5.                      *  CMEditor -- Version 3.61   *
  6.                      *                             *
  7.                      *******************************
  8.  
  9.  
  10. CMEditor USER'S MANUAL:
  11.  
  12. Background:
  13.  
  14.    CMEditor was originally written as the editor module for CMFiler, my
  15. multipurpose disk/file manager designed to bring together and simplify
  16. 99% of the file management functions you would ever need.  I eventually
  17. broke out a standalone version at the urging of several users.  If you
  18. find CMEditor useful and continue to use it beyond a 60-day evaluation
  19. period, I require that you register your copy for $10.  Please read the
  20. section on registration, and note the benefit of receiving on-disk a
  21. registered copy of the current version of CMEditor, a copy of the
  22. shareware version of CMFiler for your evaluation, and, by permission of
  23. the author, a copy of the shareware version of Integrity Master, the
  24. outstanding anti-virus and system integrity program by Wolfgang Stiller.
  25. Note that the versions of CMFiler and Integrity Master provided in this
  26. offer are for your evaluation and MUST be registered for the fee required
  27. by the author if you continue to use them beyond a fixed evaluation
  28. period.
  29.  
  30. Running CMEditor. . .
  31.  
  32.    First, you may rename CMEDITOR.COM to CE.COM, to reduce the number
  33. of keystrokes required to run it.  For convenience, I will refer to CMEditor
  34. as CE from here on.  Execute CE from the DOS prompt with the following
  35. command line (brackets indicated optional parameters)::
  36.  
  37.    CE FILESPEC [@Monitor[Screenlines][:Palette[Border]]] [-View]
  38.  
  39.      where:
  40.  
  41.      FILESPEC is the specification of the file to be edited,
  42.  
  43.      Monitor is the letter V,C,M,E,T or L, where:
  44.           V=VGA, C=CGA/EGA, M=Monochrome, E=Epson LCD or equivalent,
  45.           T=Tandy LCD or equivalent, and L=generic LCD display,
  46.      ScreenLines=25, 43 or 50 (supported if monitor is VGA-capable),
  47.      Palette=1,2,3 or 4, where:
  48.           1=white on blue, 2=cyan on black, 3=blue on white, 4=white on black,
  49.      Border is the letter b if screen border is to be painted (VGAs only),
  50.  
  51.      View is the letter v if file is to be viewed only, not edited.
  52.  
  53.    CE automatically saves the monitor information for reuse the next time it
  54. is run, in an internal configuration area, so once you get the video display
  55. the way you like it, you need never again include the video display parameters.
  56.  
  57.  
  58.                            CMEditor - 1
  59.    The following command lines are examples of legal syntax:
  60.  
  61.    ce letter.txt
  62.    CE LETTER.TXT @V43:2
  63.    ce c:\letters\my-ltr.doc @v50:1b -v
  64.    CE my-ltr.doc @c:3
  65.  
  66. Record Delimiters. . .
  67.  
  68.    The default color display mode for "record delimiters" [carriage
  69. return (CR), line feed (LF), and the combinations CR+LF and LF+CR] is to
  70. show their color values, which are cued in the legend at the bottom
  71. (blue=CR, green=LF, cyan=CR+LF, magenta=LF+CR). In addition, the end of
  72. the file is denoted with a red End-of-File (EOF) mark. Sometimes it is
  73. very useful to know exactly what delimiter combination your word
  74. processors use, so you can duplicate it when you edit with CE. You can
  75. toggle the colored delimiter symbols off and on with Alt-Minus or the
  76. gray minus key. (This is also covered in a help screen you can get by
  77. pressing Alt-H or F1.)
  78.  
  79. Information Area. . .
  80.  
  81.    The name of the file being viewed is shown in the lower left prompt area.
  82. The lower right prompt area shows the ASCII value of the character at
  83. the cursor (decimal and hex), the position of that character in the
  84. file (starting with 1), the 
  85. line (called "record") the cursor is on, and the position of the cursor
  86. within the line (called "Column", which for a long record is not
  87. necessarily the same as the screen 
  88. column).  This information display may be toggled off and on with Alt-Plus
  89. or the gray plus key.
  90.  
  91.    When the modifier key Alt- or Ctrl- is pressed, this information
  92. area displays the block, navigation and special editing commands enabled by
  93. the modifier key.
  94.  
  95. Line Wrapping. . .
  96.  
  97.    The default display mode is line wrapping, where any line longer than
  98. 80 characters is wrapped to the next screen line, so that all text is visible.
  99. This mode can be toggled between "Wrap" and "No Wrap" (see the Wr/NW at
  100. upper right for current status) with Alt-W.  In the NoWrap mode, each
  101. line longer than 80 characters simply extends off the screen to the right,
  102. but is accessible for viewing by putting the cursor on it and [Ctrl- or
  103. Shift-] Rt Arrow-ing (see below) to any place on the line.
  104. Cursor Movement. . .
  105.  
  106.    The arrow keys, either on the cursor keypad or numeric keypad, move
  107. the cursor one line up or down and one character left or right.
  108. Ctrl-Left/Rt Arrow move left or right one word at a time, and
  109. Shift-Left/Rt Arrow and Home/End move to the beginning or end of the line,
  110. as in PCWrite. A second press of the Home/End key moves to the top/bottom
  111. of the page, and a third press moves to the beginning/end of the file.
  112.  
  113.  
  114.                            CMEditor - 2
  115.    PgDn/PgUp moves the display up or down one page frame (20, 38 or 45
  116. lines), and leaves the cursor on the same relative video line.
  117. Ctrl-PgUp/PgDn moves the display by 10 page frames for fast paging through
  118. a file. Shift-Up/Down Arrow moves to the top/bottom of the current
  119. page. Alt-B/E moves to the Beginning/End of the file contents in memory.
  120.  
  121.    The mouse moves the cursor similar to the arrow keys. A special
  122. mouse feature allows variable speed scrolling as well. Hold the right
  123. button down and move the cursor down a little bit. The file begins to
  124. scroll slowly up the screen. Move the mouse down a little more and the
  125. scroll rate increases, through a total of four speeds. Moving the mouse
  126. up reverses the direction.
  127.    
  128.    For very long files, exceeding available memory, the editor loads only
  129. as much as fits. When you get to the end of that section (i.e., the
  130. current "file contents in memory" referred to above), the next operation
  131. that asks for another page or line causes the editor to load in the
  132. next section, remembering the file position of the start of the
  133. previous section so it can backtrack if you want. (It actually loads the
  134. next section with some overlap to the previous section, so that a little bit
  135. of backtracking does not result in reloading the whole previous section.)
  136. This "heel-and-toe" sequential loading is limited to 50 sections.
  137.  
  138.    A switch (Ctrl-M) allows masking non-ASCII characters.  This helps in
  139. viewing word processing files, such as WordPerfect files, which have non-ASCII
  140. characters distributed throughout the text.
  141.  
  142. Find a String. . .
  143.  
  144.    Want to look for a particular word or string of characters?  The
  145. key combination Alt-F (for "Find") opens up a data window at the bottom for
  146. you to enter a short string.  The word that the cursor is on is seeding
  147. into this window.  Pressing Up Arrow will insert the previous search string.
  148. After you edit the string and press Enter, CE will find the first appearance
  149. of the string from the current cursor position, and put the cursor on it. 
  150. Alt-X (for "neXt") finds the next appearance, and can be used repeatedly until
  151. the string no longer appears, which is signalled at the bottom of the screen.
  152. The search process starts at the cursor location and goes to the end of the
  153. file.  The search is case-insensitive.
  154.  
  155. Leading and Trailing Blanks in the Data Window. . .
  156.  
  157.    The data entry routine truncates leading and trailing blanks, but blanks
  158. may be included as leading or trailing characters by enclosing the string
  159. at either or both ends with quotes (") Suppose, for example, you wanted to
  160. find all of the appearances in a file of the word "mark", but not
  161. "remark". Press Alt-F and, in the data entry window enter: 
  162. Find string: >"mark               <.  This works for the replace string as 
  163. well.
  164.  
  165.  
  166.                            CMEditor - 3
  167. A String Search Shortcut. . .
  168.  
  169.    If the cursor is on a word for which you want to find the next appearance,
  170. press Ctrl-G (for "Goto next appearance").  This is a shortcut for Alt-F, and
  171. has the further benefit of recycling the search from the top of the file if the
  172. word is not encountered between the starting point and the end of the file.
  173.  
  174. Editing a File. . .
  175.  
  176.    Exit view mode with either Esc or Enter. The mouse left button is the
  177. same as Enter. (Note that any tags in the source panel are still there.)
  178. Now you are ready to edit!  Position the cursor on a file that you have
  179. an extra copy of somewhere, and press E (for Edit). CE again loads the
  180. selected file, but this time with an internal "switch" set which tells
  181. the editor module to support editing. (Or, in View mode, press Alt-D,
  182. for "switch to eDit mode".)
  183.  
  184. Edit Mode Limitations. . .
  185.  
  186.    CE permits edit mode only if the file fits all at once into
  187. available memory, has fewer than 16,380 records, and (in NoWrap mode) has
  188. no record longer than 8190 bytes. CE will revert to view mode if
  189. these conditions are not all satisfied.  If you have a lot of memory tied up
  190. in resident programs or RAM disk/cache, then you may not be able to
  191. edit extremely large files. Chances are, however, that this will never be
  192. a practical limitation.
  193.  
  194. Typeover vs Insert. . .
  195.  
  196.    Look at the small reverse video box in the upper right corner of the
  197. screen.  "T/O" or "Ins", then CE is in edit mode. Toggle between typeover
  198. (T/O) and insert 
  199. (Ins) modes with the Insert key. Typing action is just like any word
  200. processor.  In typeover mode, the Bksp key does not pull the text left. This
  201. is to avoid unintentionally shortening the file when editing
  202. length-sensitive files, such as .COM and .EXE files.
  203.  
  204. Editing a Line. . .
  205.  
  206.    You operate on a line at a time, and the "normal" editing keys work -
  207. i.e. Bksp, Del, Tab, Shift-Tab, the unmodified and modified arrow
  208. keys discussed above, and any ASCII-code keys. To create a new line,
  209. just Shift-Arrow to the beginning or end of the current line, depending
  210. on whether you want the new line above or below the current one, and hit
  211. Enter. This inserts the default delimiter combination, CR+LF, into the text
  212. to set up a new line void of text, but ready for you to start typing.
  213. The combination Ctrl-Enter gives you a menu screen from which you may select
  214. a different record delimiter. Join two lines by deleting the record
  215. delimiter at the end of the first line to be joined. Delete a line with
  216. Ctrl-Y ("Yank"). Delete from the cursor to the end of the line with
  217. Ctrl-D. Delete a word and its associated whitespace with Ctrl-T.
  218.  
  219.  
  220.                            CMEditor - 4
  221. More on Record Delimiters. . .
  222.  
  223.    On CGA/EGA/VGA monitors, the record delimiter appears as a single
  224. colored "blank" character at the end of the line, whether it is actually
  225. two characters (e.g., CR+LF) or one (e.g., LF). It may be deleted to join
  226. two lines, but not over-struck - it always pushes right, even when you are
  227. in typeover mode. The red "End-of-File" (EOF) marker is not actually part
  228. of your file, but rather is only a visual aid for you to see where the
  229. text ends. When the cursor is on the EOF marker, the "byte number" in
  230. the legend corresponds to the number of the next character, if you were to
  231. type one. The EOF marker also always pushes right, and cannot be deleted. 
  232. The height of the cursor shows the status of the "Caps Lock" switch.
  233.  
  234. Alt- Keypad and Alt-N. . .
  235.  
  236.     Any ASCII code from 1 through 255 can be entered from the numeric
  237. keypad using the Alt- key modifier. A special combination is provided for
  238. ASCII zero ("NULL"), since Alt-Zero is not recognized by any keyboard drivers
  239. I have seen.  It is Alt-N (for "Null").
  240.  
  241. Changing Case . . .
  242.  
  243.    Pressing Ctrl-U/L/I on a letter forces it into upper or lower case,
  244. or inverts the case.
  245.  
  246. Block Operations. . . or the REAL Power of CE's Editor. . .
  247.  
  248.    All the block operations - there are six - are keyed to
  249. Alt-key combinations, and they are all intuitive (sort of). They are:
  250. Alt-{ Mark, Yank (delete), moVe, Copy, Print and Output }.     
  251.  
  252.  
  253. Popup ASCII Table. . .
  254.  
  255.    The command Ctrl-A pops up an ASCII table for
  256. reference while editing or viewing a document.  Navigate through the
  257. table with the Arrow keys or mouse, select the character desired, and
  258. press Enter or the left mouse button to type it at the current cursor
  259. position in the text.  Or press Esc or the right mouse button to leave
  260. without typing.
  261.  
  262. Marking a Block, and the Copy Buffer. . .
  263.  
  264.    You may also manipulate blocks of lines. First mark a block by putting
  265. the cursor on the first (or last) line of the block you want to do
  266. something with, press Alt-M (for "Mark"), move down (or up) with
  267. arrows, PgDn/Up, etc., and mark the last (or first) line of the block,
  268. again with Alt-M. The marked text is written into a dedicated internal
  269. copy buffer for later use. If you made a mistake, a third press of Alt-M
  270. clears the marks, but leaves the copy buffer intact. The contents of this
  271. copy buffer remain available for multiple use until a new block is marked.
  272. You may exit the editor back to the main module, and edit another file,
  273. and because the editor copy buffer is a dedicated chunk of RAM in the main
  274. and editor modules, the buffer is still intact.  Just copy it into the
  275. next file with Alt-C.
  276.  
  277.  
  278.                            CMEditor - 5
  279.    When you are marking a block, note that the information box at the
  280. bottom left of the screen expands to show you the attributes of the
  281. marked block - the number of the first and last records marked, and the
  282. number of bytes in the painted area. There is an arbitrary 32 KB limit on
  283. the copy buffer. The upper right-hand information box shows "Blk"
  284. (for "blocked") instead of "T/O" or "Ins", meaning that normal editing is
  285. not permitted while you have a block marked.
  286.  
  287. Delete, Copy, Move. . .
  288.  
  289.    Delete the block with Alt-Y ("Yank"). Or put the cursor in an unpainted
  290. area of the file, and copy the block into that area, just ahead of the
  291. line where you put the cursor, by pressing Alt-C ("Copy"). Or move it
  292. with Alt-V ("moVe"). As noted above, the block previously "marked" into
  293. the copy buffer is available for multiple use.  Just put the cursor where
  294. you want the block to be copied and hit Alt-C again.
  295.  
  296. Restoring from Inadvertent Block Deletion. . .
  297.  
  298.    If you just deleted a block in error, put the cursor where you want
  299. to restore it, and press Alt-C to copy the buffer back into the file.
  300.  
  301. Sending a Block of Text to the Printer. . .
  302.    
  303.    Print the copy buffer to the parallel printer with Alt-P ("Print"). 
  304. After printing, if you want a form feed, press Ctrl-F ("Form feed" - note
  305. the use of Ctrl- vice Alt- as the modifier key, since Alt-F was already
  306. used for "Find").
  307.    
  308. . . . or to a File. . .
  309.  
  310.    Finally, output the copy buffer to a file in the same path as the file
  311. being edited by pressing Alt-O (letter "O" for "Output"). A window opens at
  312. the bottom for typing the name of the file for CE to create (if it
  313. doesn't already exist) or append to if it does.
  314.  
  315. Replace and Global replace. . .
  316.  
  317.    In addition to the Alt-F "find" feature, there is an Alt-R "replace" and
  318. an Alt-G "global replace" feature. Just press Alt-R or Alt-G and enter the
  319. find and replace strings when prompted. (If you see a mistake in the
  320. find string while you are typing the replace string, just arrow back up a
  321. line and reedit it.) For Alt-R, CE will find the first match and ask you
  322. to confirm the replacement. It continues finding and requesting
  323. confirmation until you press Q (for "Quit replacing") or Esc. Alt-X
  324. reactivates either the find or replace routine, whichever was used last.
  325. Alt-G replaces all appearances of the find string with no confirmation. It
  326. may be terminated with any key press. When global replace is thus
  327. terminated, Alt-X reactivates the confirmatory replace, not the global replace.
  328.  
  329.  
  330.                            CMEditor - 6
  331. Importing a File. . .
  332.  
  333.    Import another file into the file being edited by placing the cursor on the
  334. line just below the desired insertion point, and pressing Alt-T (for imporT).
  335. Then enter the filespec to the file to be imported.
  336.  
  337. Leaving Edit Mode. . .
  338.  
  339.    After editing is complete, press Esc. When leaving the editor after
  340. editing an existing file, there are several decisions you have to make:
  341. 1) under what name to save the edited file; 2) whether to use the
  342. current date/time or the original date/time of the edited file as
  343. the save-file's date/time stamp; 3) whether to rename the original file so
  344. it is also saved; and 4) whether to return to the editor after the
  345. save operation.
  346.  
  347.    The default selections for these options - the ones most often used -
  348. are: 1) save the edited file under the original file's name; 2) do not
  349. reuse the original date/time stamp; 3) do not rename and save the
  350. original file; and 4) do not return to the editor. You can accept these
  351. default options by pressing Enter, or Y, or if you had hit Esc by mistake,
  352. you can press Esc again to return where you were in the editor. If the
  353. defaults are not acceptable, press N, and CE will take you through each option.
  354.  
  355.    In the first option, CE offers the original file name as the save-file
  356. name, but you can edit it, including adding a path to have it saved in
  357. a different directory. If you do not want to save the edited file at all,
  358. press Esc.
  359.  
  360.    In the second option, you may press Y to reuse the original date/time
  361. stamp of the file that was edited.
  362.  
  363.    In the third option, CE offers a default name to rename the original
  364. file, replacing the last character of the extension with an exclamation
  365. point. You can edit the name, or press Esc to avoid renaming the original file.
  366.  
  367.    In the fourth option, you may press Y to return to the editor.
  368.  
  369.  
  370.                            CMEditor - 7
  371. Saving File in Mid-Session . . .
  372.  
  373.    The command Ctrl-S lets you save a file in mid-session while editing.
  374. This is prudent during a long session just to make sure you don't lose the
  375. edit to a power failure. Ctrl-S provides a sequence and defaults similar to
  376. the exit sequence above except that you return to the editor instead
  377. of leaving.
  378.  
  379. Creating a New File with the Editor. . .
  380.  
  381.    A new file may be created from the main module by pressing the letter
  382. F ("new File") and entering a name for the new file in the data entry line.
  383. The new file will appear in the directory from which the F command was issued.
  384.  
  385. Splitting a Files. . .
  386.  
  387.    You may split a file being viewed or edited into up to 20 smaller files,
  388. at dividers you insert where you want.  Alt-I inserts a divider at the location
  389. of the cursor, and Alt-S splits the file at the dividers. The beginning and
  390. end of the file have pre-placed, implicit dividers. In edit mode, this splitter
  391. may be used only if you have not yet edited the file, or if you have saved the
  392. file in mid-session.
  393.  
  394. Help. . .
  395.  
  396.    A help facility may be summoned on-line at any time in the
  397. editor with the command F1 or Alt-H.  Help keywords are listed alphabetically,
  398. and you can navigate quickly to the section you want by pressing the first
  399. letter of the keyword you are looking for.
  400.  
  401.  
  402.  
  403.                            CMEditor - 8